package com.ruoyi.classai.domain.dto.resource;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 资源库新增对象
 * 
 * @author lcj
 * @date 2025-03-16
 */
@Data
@Schema(description = "资源库新增对象")
public class EwcResourceAddDto {

    @Schema(description = "资源ID")
    private String id;
    
    /** 资源名称 */
    @NotBlank(message = "资源名称不能为空")
    @Schema(description = "资源名称", required = true)
    private String resourceName;
    
    /** 资源备注 */
    @Schema(description = "资源备注")
    private String remarks;
    
    /** 资源图片 */
    @Schema(description = "封面资源图片")
    private String resourceImg;
    
    /** 浏览数量 */
    @Schema(description = "浏览数量")
    private Integer browseNum;
    
    /** 年级类型 */
    @Schema(description = "年级类型")
    private Integer gradeType;
    
    /** 学科类型 */
    @Schema(description = "学科类型")
    private Integer subjectType;
    
    /** 资源文件 */
    @Schema(description = "资源文件")
    @Valid
    private List<EwcResourceDetailAddDto> resourceFiles;
}